package org.wlc.demov3.listener;

import com.wlc.util.JsonResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.wlc.demov3.EventManager;

/**
 * @author 王立朝
 * @date 2022/5/12
 * @description: 邮箱监听器
 */
public class MailEventListener implements EventListener {

    private static final Logger logger = LoggerFactory.getLogger(MailEventListener.class);


    /**
     * 定义事件类
     *
     * @param jsonResult
     */
    @Override
    public void doEvent(JsonResult jsonResult) {
        logger.info("给用户{}发送邮件，信息为：{}",jsonResult.getCode(),jsonResult.getMsg());
    }
}
